import {
  Entity,
  Column,
  PrimaryGeneratedColumn,
  CreateDateColumn,
} from 'typeorm';

@Entity('t_template') // 指定表名
export class TableTemplate {
  @PrimaryGeneratedColumn()
  id: number;

  @CreateDateColumn({ name: 'create_time' }) // 映射数据库字段名
  createTime: Date;

  @Column()
  pic_name: string;

  @Column()
  pic_url: string;

  @Column()
  type: number;

  @Column()
  pic_description: string;
}
